﻿using DFGK_WMS.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.IRepository
{
    public interface ITSupplierRepository:IBaseRepository<TSupplier>
    {
        bool AddTSupplier(TSupplier dictItem,out string message);
        /// <summary>
        /// 查询供应商
        /// </summary>
        /// <param name="keyword"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="totalCount"></param>
        /// <returns></returns>
        List<TSupplier> GetAllTSupplier(string? name, int pageIndex, int pageSize, out int totalCount);
        /// <summary>
        /// 修改供应商
        /// </summary>
        /// <param name="supplier"></param>
        /// <returns></returns>
        bool UpdTSupplier(TSupplier supplier,out string message);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool DelTSupplier(int id);
        TSupplier GetSupplierById(int id);
        /// <summary>
        /// 获取供应商类型字典数据
        /// </summary>
        /// <returns></returns>
        List<TDictItem> GetTSupplierDic();
    }
}
